﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Project_1
{
    class ReplacementTire : TireDecorator
    {
        public ReplacementTire(Tire tire)
            :base(tire)
        {
        }

        public override bool CheckTireFit(double height1)
        {
            if (this.CalculateHeight() - height1 >= 2)
                return true;
            return false;
        }

        public override bool CheckSpeedDisplay(double s1, double s2)
        {
            double spd = s2 - s1;

            if (spd > 2.5 || spd < -2.5)
                return true;
            else
                return false;
        }

        public override void CheckCoolness()
        {
            if ((base.RimSize <= 20 && base.RimSize >= 15) && (base.CalculateHeight() > 32))
                this.Coolness = true;
            else
                this.Coolness = false;
        }
    }
}
